/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.suspend.e;

import android.content.Context;
import android.os.AsyncTask.Status;
import android.text.TextUtils;
import com.qihoo.gamecenter.sdk.suspend.b.b.e;
import com.qihoo.gamecenter.sdk.suspend.b.b.h;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class c extends com.qihoo.gamecenter.sdk.suspend.b.b.d {
    private Context a;
    private a b;
    private boolean c = false;
    private String d;
    private com.qihoo.gamecenter.sdk.suspend.b.b.a e;

    public c(Context paramContext, a parama) {
        this.a = paramContext;
        this.b = parama;
    }

    public boolean b() {
        if (this.e == null)
            return false;
        return (AsyncTask.Status.FINISHED != this.e.getStatus());
    }

    public void a(boolean paramBoolean) {
        this.c = paramBoolean;
    }

    public void a(String paramString1, String paramString2) {
        if (TextUtils.isEmpty(paramString1))
            return;
        this.d = paramString1;
        HashMap localHashMap = new HashMap();
        localHashMap.put("pname", paramString1);
        if (!(TextUtils.isEmpty(paramString1)))
            localHashMap.put("qid", paramString2);
        localHashMap.put("vf", "101");
        localHashMap.put("vapp", String.valueOf(com.qihoo.gamecenter.sdk.suspend.b.c.a(this.a, paramString1)));
        localHashMap.put("md", com.qihoo.gamecenter.sdk.suspend.b.e.a.b);
        localHashMap.put("sk", Integer.toString(com.qihoo.gamecenter.sdk.suspend.b.e.a.a));
        localHashMap.put("m1", com.qihoo.gamecenter.sdk.suspend.b.e.a.b(this.a));
        localHashMap.put("m2", com.qihoo.gamecenter.sdk.suspend.b.e.a.c(this.a));
        com.qihoo.gamecenter.sdk.suspend.localapp.d locald = new com.qihoo.gamecenter.sdk.suspend.localapp.d(this.a);
        localHashMap.put("s", locald.a() + "x" + locald.b());
        localHashMap.put("nt", String.valueOf(com.qihoo.gamecenter.sdk.suspend.b.b.b.b(this.a)));
        localHashMap.put("gameunion", String.valueOf(com.qihoo.gamecenter.sdk.suspend.c.a.b(this.a)));
        localHashMap.put("gameunionv", com.qihoo.gamecenter.sdk.suspend.c.a.c(this.a));
        com.qihoo.gamecenter.sdk.suspend.localapp.b localb = com.qihoo.gamecenter.sdk.suspend.localapp.c.a(this.a,
                paramString1);
        if (localb != null) {
            localHashMap.put("sdkkey", localb.a());
            localHashMap.put("sdkid", localb.b());
        }
        this.e = h.a(this.a, com.qihoo.gamecenter.sdk.suspend.b.d.a.c, localHashMap, this);
    }

    protected void a(e parame) {
        com.qihoo.gamecenter.sdk.suspend.b.b.a("CurrgameFloatConfigInterfaceTask", "onFinish -- " + parame.c);
        com.qihoo.gamecenter.sdk.suspend.b.b.a("CurrgameFloatConfigInterfaceTask", "content -- " + parame.d);
        if (this.c)
            return;
        ArrayList localArrayList = b.k(parame.d);
        a(parame.a, parame.b, localArrayList);
    }

    private void a(int paramInt, String paramString, ArrayList paramArrayList) {
        if (this.b == null)
            return;
        this.b.a(paramInt, paramString, paramArrayList, this.d);
    }
}